# -*- coding: utf8 -*-
import os
import configparser

config = configparser.ConfigParser()
config.read('mysql.ini', encoding="utf8")

results = config.sections()
result = config.items("mysqld")
for key,value in config.items("mysqld_safe"):
    print(key,value)